package cn.sanch.system.service.impl;

import cn.sanch.basic.service.impl.BaseServiceImpl;
import cn.sanch.system.domain.SystemDictionaryDetail;
import cn.sanch.system.mapper.SystemDictionaryDetailMapper;
import cn.sanch.system.service.ISystemDictionaryDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author sanch37
 * 2022/5/23
 */
@Service
public class SystemDictionaryDetailServiceImpl extends BaseServiceImpl<SystemDictionaryDetail>
        implements ISystemDictionaryDetailService {

    @Autowired
    private SystemDictionaryDetailMapper systemDictionaryDetailMapper;

    /**
     * 根据前端传过来的type_id来查询对应的对象
     * @param types_id
     * @return
     */
    @Override
    public List<SystemDictionaryDetail> findByTypeId(Long types_id) {

        return systemDictionaryDetailMapper.findByTypeId(types_id);
    }

}
